package com.truyen.service;

import java.util.List;

import com.truyen.persistence.entity.LoaiTruyenTranh;
import com.truyen.persistence.entity.SearchLoaiTruyenTranh;
import com.truyen.persistence.entity.TruyenTranh;
import com.truyen.utils.PagingInfo;


public interface SearchLoaiTruyenTranhService {
	
	// tao moi
	void save(SearchLoaiTruyenTranh entity);

	//tim theo id
	SearchLoaiTruyenTranh findById(Long id);

	//lay tat ca
	List<SearchLoaiTruyenTranh> getAll();

	//tim 1 doi tuong
	SearchLoaiTruyenTranh findByProperty(String column, Object value);

	//lay list danh sach trong phan quan ly
	List<SearchLoaiTruyenTranh> getAllLst(String kwSearch, String sort, String sortBy,
			PagingInfo pInfo);

	//tim doi tuong theo loai truyen tranh va truyen tranh
	SearchLoaiTruyenTranh findByLoaiTruyenTranhVTruyenTranh(
			LoaiTruyenTranh loaiTruyenTranh, TruyenTranh comic);

	//lay danh sach truyen boi loai truyen
	List<SearchLoaiTruyenTranh> getLstByLoaiTruyenTranhWithPaging(
			LoaiTruyenTranh loaiTruyenTranh, String string, PagingInfo pInfo);
	
}
